package p;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import q.BO;
import ooww.ssww.strong.utils.NotificationUtil;
import com.umeng.analytics.MobclickAgent;
import ooww.ssww.strong.utils.CommenContext;
import ooww.ssww.strong.utils.OnekeyField;
import ooww.ssww.strong.utils.StatisticMob;
import java.util.HashMap;
import java.util.Map;

/**
 * @create by MajinBuu
 * @Data 2017-05-27
 * @describe 给service发送BroadcastReceiver做统计
 */
public class BS extends BroadcastReceiver {

    public BS() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        /*if (intent.getStringExtra(OnekeyField.KEY).equals(OnekeyField.FLASHLIGHT)) {
            Map<String, String> m = new HashMap<>();
            m.put(OnekeyField.ONEKEYCLEAN, "手电筒");
            MobclickAgent.onEvent(C.get(), StatisticMob.STATISTIC_ID, m);
        } else*/
        if (intent.getStringExtra(OnekeyField.KEY).equals(OnekeyField.SETTINGS)) {
            Map<String, String> m = new HashMap<>();
            m.put(OnekeyField.ONEKEYCLEAN, "系统设置");
            MobclickAgent.onEvent(CommenContext.get(), StatisticMob.STATISTIC_ID, m);
            Intent intent6 = new Intent(Settings.ACTION_SETTINGS);
            intent6.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            CommenContext.get().startActivity(intent6);
            // 收起通知栏
            NotificationUtil.collapseStatusBar(context);
        } else if (intent.getStringExtra(OnekeyField.KEY).equals(OnekeyField.KILLBACKGROUND)) {
            Intent intent7 = new Intent(context, BO.class);
            intent7.putExtra(OnekeyField.ONEKEYCLEAN, "notifymanager");
            intent7.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_ID);
            intent7.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            CommenContext.get().startActivity(intent7);
            // 收起通知栏
            NotificationUtil.collapseStatusBar(context);
        }
    }
}
